//
//  AddAddressStore.h
//  NewPro
//
//  Created by RYX on 2018/10/20.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import <Foundation/Foundation.h>
@class AddAddressParametersModel;

NS_ASSUME_NONNULL_BEGIN

@interface AddAddressStore : NSObject

#pragma mark - 获取所有地址
- (void)getAllAddressWithSuccess:(void(^)(NSArray *listArr))success Failure:(void(^)(NSError *error))failure;


#pragma mark - 添加地址
- (void)addAdresstWithParameters:(AddAddressParametersModel *)parametersModel WithSuccess:(void (^)(void))success failure:(void (^)(NSError * error))failure;


#pragma mark - 删除地址
- (void)deleteAddressWithId:(NSString *)addressId Success:(void(^)(void))success Failure:(void(^)(NSError *error))failure;

#pragma mark - 编辑地址
- (void)editAdresstWithParameters:(AddAddressParametersModel *)parametersModel WithSuccess:(void (^)(void))success failure:(void (^)(NSError * error))failure;

#pragma mark - 设置默认地址
- (void)setDefaultAdresstWithAddressId:(NSString *)addressId andCustomId:(NSString *)customId Success:(void (^)(void))success failure:(void (^)(NSError * error))failure;


@end

NS_ASSUME_NONNULL_END
